//货柜管理-供应商列表-配置文件
App.util.ns('Admin.Cabinet.Factory');
Admin.Cabinet.Factory.Conf = {
    columns: [
        {name: '厂商名称', value: 'name'},
        {name: '联系人员', width: '120px',value: 'contact_name'},
        {name: '联系电话', width: '120px',value: 'contact_tel'},
        {name: '创建日期', width: '80px', value: function(item){
            return App.util.formator.date(item.created_at);
        }}
    ],
    form: [
        {type: 'hidden', name: 'id'},
        {type: 'input', name: 'name', title: '厂商名称', required: true, maxLength: 100, rule: {
            type: 'str',
            range: [1, 100]
        }},
        {type: 'input', name: 'contact_name', title: '联系人员', rule: {
            type: 'str',
            range: [0, 255]
        }},
        {type: 'input', name: 'contact_tel', title: '联系电话', rule: {
            type: 'str',
            range: [0, 100]
        }},
        {type: 'textarea', name: 'introduction', title: '简介', maxLength: 500, rule: {
            type: 'str',
            range: [0, 500]
        }}
    ]
};